package com.ly.ssm.controller;

import com.ly.ssm.bean.Employees;
import com.ly.ssm.dao.EmployeesDao;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/test")
public class BaseController {

    @Resource
    private EmployeesDao employeesDao;

    @GetMapping(value = "/q")
    public void test() {
        System.out.println("ddddd");
        Employees employees = employeesDao.selectByPrimaryKey(100);
        System.out.println(employees);
    }
}
